package com.lisen.common.base.ui;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.apache.log4j.Logger;
import org.apache.struts2.ServletActionContext;

import com.opensymphony.xwork2.ActionSupport;

public class BaseActionSupport extends ActionSupport implements
		ActionBaseInterface {
	protected Logger logger;
	private HttpServletRequest request;
	private HttpServletResponse response;

	public BaseActionSupport() {
		logger = Logger.getLogger(getClass());
	}

	@Override
	public HttpServletRequest getRequest() {
		return ServletActionContext.getRequest();
	}

	@Override
	public HttpServletResponse getResponse() {
		return ServletActionContext.getResponse();
	}

	@Override
	public void setRequest(HttpServletRequest request) {
		this.request = request;
	}

	@Override
	public void setResponse(HttpServletResponse response) {
		this.response = response;
	}

}
